import {Button,message} from "antd";
import React, {Component} from 'react';


interface IProps{
    id: number
}

interface IState {

}

class EditButton  extends Component<IProps,IState> {

    constructor(props:IProps) {
        super(props);
        this.state = {

        }
    }

    handleEdit = () => {
        message.success(`你要表白${this.props.id}吗？`)
    }
    public render() {
        return (
            <Button type='primary' size={'small'} onClick={this.handleEdit}>编辑</Button>
        );
    }
}

export default EditButton ;
